package com.gitee.taotaojs.util.base;

import com.gitee.taotaojs.util.comparator.Order;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @author TaoTaojs
 * @date 2020/8/4 9:01 AM
 * <p>Description</p>
 * <h2>功能描述</h2>
 * 测试对象
 * <h3>主要功能：</h3>
 * <ol>
 *     <li>基于tkMapper自动生成代码的工具类</li>
 * </ol>
 * <h3>关联类</h3>
 * <p>参考链接：</p>
 * <h2>更新日志</h2>
 * [author]        [time]                      [version]          [desc]
 * TaoTaojs        2020/8/4 9:01 AM             V1.0
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class DemoBean {

    /** id */
    private Integer id;
    /** 姓名 */
    @Order
    private String name;
    /** 得分 */
    private Double point;
    /** 年龄 */
    private Integer age;

    public static List<DemoBean> getList(){
        List<DemoBean> demoBeans = new ArrayList<DemoBean>() {};
        demoBeans.add(DemoBean.builder()
                .id(1).name("张三")
                .build());
        demoBeans.add(DemoBean.builder()
                .id(2).name("李四")
                .build());
        demoBeans.add(DemoBean.builder()
                .id(3).name("王五")
                .build());
        demoBeans.add(DemoBean.builder()
                .id(4).name("赵六")
                .build());
        return demoBeans;
    }

}
